<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
<?php  include 'action/session_check.php'; //登录判断  ?>   
<?php 
require_once("../conn/conn_db.php"); //包含数据库连接文件
if($_GET['u_id']!="")
{
  $uid = $_GET['u_id']; 
  $sql="select * from user_info where u_id=$uid";  //查询语句
  $result = $conn->query($sql);         //执行SQL语句
  $row = $result->fetch_array(); //获取查询结果   
 ?> 
<table>
  <tr><td colspan="2">用户详细信息</td></tr>
  <tr>
     <td>姓名：</td>
     <td><?php echo $row["u_name"];?></td>
  </tr>
  <tr>
     <td>密码：</td>
     <td><?php echo $row["u_pwd"];?></td>
  </tr>
  <tr>
     <td>性别：</td>
     <td><?php echo $row["u_sex"];?></td>
  </tr>
  <tr>
     <td>年龄：</td>
     <td><?php echo $row["u_age"];?></td>
  </tr>
  <tr>
     <td>学历：</td>
     <td><?php echo $row["u_education"];?></td>
  </tr>
  <tr>
     <td>QQ：</td>
     <td><?php echo $row["u_qq"];?></td>
  </tr>
  <tr>
     <td>邮箱：</td>
     <td><?php echo $row["u_email"];?></td>
  </tr>
  <tr>
     <td>联系地址：</td>
     <td><?php echo $row["u_city"];?></td>
  </tr>
  <tr>
     <td>联系电话：</td>
     <td><?php echo $row["u_tel"];?></td>
  </tr>
  <tr>
     <td>照片：</td>
     <td><img src="../../<?php echo $row["u_header"];?>" alt="User" width="115px" height="160px" /></td>
  </tr>
   <tr>
     <td>注册日期：</td>
     <td><?php echo $row["u_createtime"];?></td>
  </tr>
  <tr><td colspan="2" align="center">  <a class="a1" href="javascript:history.back(-1);" target="_self">返回</a> </td></tr>
      <tr>
    <td colspan="2"></td>
  </tr> 
</table>
<?php 
 }
 else 
 {
  echo "<script>self.location='user_manager.php'</script>";
 }
?>
</body>
</html>